<!DOCTYPE html>
<html lang="zh-CN">
    
    <head>
        <meta charset="UTF-8" />
        <title>
            {%block title%}Molex{%endblock%}
        </title>
        <link rel="stylesheet" type="text/css" href="/static/default.css" />
    </head>
    
    <body>
        <div id="Top">
            <a href="#;" name="_top">
            </a>
            <div id="TopMain">
                <a href="/">
                    <img src="/static/logo.png" border="0" style="display: block; float: left; margin-top: 11px; margin-left: 20px;"
                    />
                </a>
                <div id="Navigation">
                    <ul>
                        <li>
                            <a href="/" class="white">
                                首页
                            </a>
                        </li>
                        {%if user.is_authenticated%}
                        <li>
                            <a href="/i/{{user.id}}/" class="white">
                                {{user}}
                            </a>
                        </li>
                        <li>
                            <a href="/signout/" class="white">
                                登出
                            </a>
                        </li>
                        {%else%}
                        <li>
                            <a href="/signup/" class="white">
                                注册
                            </a>
                        </li>
                        <li>
                            <a href="/signin/" class="white">
                                登入
                            </a>
                        </li>                        	
                        {%endif%}
                    </ul>
                </div>
                <script type="text/javascript">
                    var dispatch = function() {
                        q = document.getElementById("q");
                        if (q.value != "") {
                            location.href = '/q/' + q.value;
                            return false;
                        } else {
                            return false;
                        }
                    }
                </script>
                <div id="Search">
                    <form onsubmit="return dispatch()">
                        <input type="text" class="search" maxlength="40" name="q" value="" id="q"
                        />
                        <input type="submit" class="super normal button" value="Search" style="-moz-border-radius: 0px 5px 5px 0px; border: none;"
                        />
                    </form>
                </div>
            </div>
        </div>
        <div id="Wrapper">
            <div id="Main" style="min-height:500px;">
                <div id="Sidebar">
                </div>
                <div id="Rightbar">

                    {%if user.is_authenticated%}
                    <div class="box">
                        <div class="cell">
                            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                <tbody>
                                    <tr>
                                        <td width="48" valign="top">
                                            <a href="#">
                                                <img src="/static/6999.png" border="0" alt="aisk">
                                            </a>
                                        </td>
                                        <td width="10" valign="top">
                                        </td>
                                        <td width="auto" align="left">
                                            <span class="bigger">
                                                <a href="#">
                                                    aisk
                                                </a>
                                            </span>
                                            <div class="sep5">
                                            </div>
                                            <span class="fade">
                                            </span>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <div class="sep10">
                            </div>
                            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                <tbody>
                                    <tr>
                                        <td width="33%" align="center">
                                            <a href="http://www.v2ex.com/my/nodes" class="dark" style="display: block;">
                                                <span class="bigger">
                                                    0
                                                </span>
                                                <div class="sep3">
                                                </div>
                                                <span class="fade">
                                                    节点收藏
                                                </span>
                                            </a>
                                        </td>
                                        <td width="34%" style="border-left: 1px solid rgba(100, 100, 100, 0.4); border-right: 1px solid rgba(100, 100, 100, 0.4);"
                                        align="center">
                                            <a href="http://www.v2ex.com/my/topics" class="dark" style="display: block;">
                                                <span class="bigger">
                                                    0
                                                </span>
                                                <div class="sep3">
                                                </div>
                                                <span class="fade">
                                                    主题收藏
                                                </span>
                                            </a>
                                        </td>
                                        <td width="33%" align="center">
                                            <a href="http://www.v2ex.com/my/following" class="dark" style="display: block;">
                                                <span class="bigger">
                                                    0
                                                </span>
                                                <div class="sep3">
                                                </div>
                                                <span class="fade">
                                                    特别关注
                                                </span>
                                            </a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="inner">
                            <a href="http://www.v2ex.com/notifications" class="fade">
                                0 条未读提醒
                            </a>
                        </div>
                    </div>
                    
                    {%else%}
                    
                    <div class="box">
                        <div class="cell">
                            <strong>
                                Molex 
                            </strong>
                            <div class="sep5">
                            </div>
                            <span class="fade">
                                金属党俱乐部
                            </span>
                        </div>
                        <div class="inner">
                            <div class="sep5">
                            </div>
                            <div align="center">
                                <a href="/signup/" class="super normal button">
                                    现在注册
                                </a>
                                <div class="sep5">
                                </div>
                                <div class="sep10">
                                </div>
                                已注册用户请
                                <a href="/signin/">
                                    登入
                                </a>
                            </div>
                        </div>
                    </div>
                    {%endif%}
                    
                    <div class="sep20">
                    </div>                    
                    
                    <div class="box">
                        <div class="cell">
                            <span class="fade">
                                最热节点
                            </span>
                        </div>
                        <div class="inner" style="line-height: 200%;">
                            <a href="http://www.v2ex.com/go/qna" class="item_node">
                                问与答
                            </a>
                            <a href="http://www.v2ex.com/go/share" class="item_node">
                                分享发现
                            </a>
                            <a href="http://www.v2ex.com/go/babel" class="item_node">
                                Project Babel
                            </a>
                            <a href="http://www.v2ex.com/go/autistic" class="item_node">
                                自言自语
                            </a>
                            <a href="http://www.v2ex.com/go/v2ex" class="item_node">
                                V2EX
                            </a>
                            <a href="http://www.v2ex.com/go/gae" class="item_node">
                                Google App Engine
                            </a>
                        </div>
                    </div>
                    
                    
                </div>
                {%block content%}
                <div id="Content">
                    
                                       
                    
                </div>
                {%endblock%} 
                <div class="c">
                </div>
            </div>
        </div>
        <div id="Bottom">
            <div id="BottomMain">
                <div class="fr" align="right" style="padding-top: 10px;">
                    <a href="http://code.google.com/appengine/" target="_blank">
                        <img src="/static/appengine.gif" border="0" alt="Powered by Google App Engine"
                        align="absmiddle" />
                    </a>
                    &nbsp;
                    <a href="http://www.rackspacecloud.com/1209.html" target="_blank">
                        <img src="/static/rackspacecloud.png" border="0" alt="Powered by Rackspace Cloud"
                        align="absmiddle" />
                    </a>
                    <div class="sep5">
                    </div>
                    <a href="http://www.apple.com/mobileme" target="_blank">
                        <img src="/static/mobileme.gif" border="0" align="absmiddle"
                        />
                    </a>
                    &nbsp;
                    <a href="http://www.getcloudapp.com/" target="_blank">
                        <img src="/static/cloudapp.png" border="0" align="absmiddle"
                        />
                    </a>
                </div>
                <strong>
                    <a href="/about" class="dark">
                        About
                    </a>
                </strong>
                &nbsp; | &nbsp;
                <strong>
                    <a href="/faq" class="dark">
                        FAQ
                    </a>
                </strong>
                &nbsp; | &nbsp;
                <strong>
                    <a href="/mission" class="dark">
                        Mission
                    </a>
                </strong>
                &nbsp; | &nbsp;
                <strong>
                    <a href="http://picky.olivida.com/" class="dark" target="_blank">
                        Blog
                    </a>
                </strong>
                &nbsp; | &nbsp;
                <strong>
                    <a href="/advertise" class="dark">
                        Advertise
                    </a>
                </strong>
                <div class="sep10">
                </div>
                <div class="sep5">
                </div>
                <span class="fade">
                    V2EX 开始于 2006 年，在 2010 年重新启动。运行在 Google App Engine 上。
                </span>
                <div class="sep3">
                </div>
                <span class="fade">
                    Lovingly made by
                    <a href="http://www.olivida.com/" target="_blank" class="dark">
                        <strong>
                            OLIVIDA
                        </strong>
                    </a>
                </span>
                <div class="sep10">
                </div>
                <div class="sep5">
                </div>
                <small>
                    VERSION: 2.4.3
                    <br />
                    ♥ Do have a faith in what you're doing.
                </small>
            </div>
        </div>
    </body>

</html>